package com.lpit.mapper;

import com.lpit.dto.CommentsReplyDto;
import com.lpit.pojo.CommentReply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【comment_reply(评论回复表)】的数据库操作Mapper
* @createDate 2023-06-27 14:43:33
* @Entity com.lpit.entity.CommentReply
*/
@Mapper
public interface CommentReplyMapper extends BaseMapper<CommentReply> {

    /**
     * 对文章的评论添加回复
     * @param commentsReplyDto
     * @return ResponseResult<Integer>
     */
    Integer addCommentsReply(CommentsReplyDto commentsReplyDto);

    List<Long> selectByArticle(@Param("id") Long id);
}




